<template>
  <div v-if="Object.keys(topImages).length !== 0" class="detail-swiper">
    <swiper class="swiper-vh">
      <swiper-item v-for="item in topImages" :key="item">
        <img :src="item" />
      </swiper-item>
    </swiper>
  </div>
</template>

<script>
import { Swiper, SwiperItem } from 'components/common/swiper'
export default {
  name: 'DetailSwiper',
  props: {
    topImages: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: {
    Swiper,
    SwiperItem
  },
  data() {
    return {}
  }
}
</script>

<style type="text/css" scoped>
.swiper-vh {
  height: 38vh;
  overflow: hidden;
}
</style>
